home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / startup-notification-1.0 / libsn / sn-common.h next >
Encoding:
C/C++ Source or Header  |  2005-10-18  |  2.5 KB  |  61 lines

  1. /* 
  2.  * Copyright (C) 2002 Red Hat, Inc.
  3.  * 
  4.  * Permission is hereby granted, free of charge, to any person
  5.  * obtaining a copy of this software and associated documentation
  6.  * files (the "Software"), to deal in the Software without
  7.  * restriction, including without limitation the rights to use, copy,
  8.  * modify, merge, publish, distribute, sublicense, and/or sell copies
  9.  * of the Software, and to permit persons to whom the Software is
  10.  * furnished to do so, subject to the following conditions:
  11.  * 
  12.  * The above copyright notice and this permission notice shall be
  13.  * included in all copies or substantial portions of the Software.
  14.  * 
  15.  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  16.  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  17.  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  18.  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
  19.  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
  20.  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  21.  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  22.  * SOFTWARE.
  23.  */
  24.  
  25.  
  26. #ifndef __SN_COMMON_H__
  27. #define __SN_COMMON_H__
  28.  
  29. #include <libsn/sn-util.h>
  30. #include <X11/Xlib.h>
  31.  
  32. SN_BEGIN_DECLS
  33.  
  34. #ifndef SN_API_NOT_YET_FROZEN
  35. #error "libstartup-notification should only be used if you understand that it's subject to frequent change, and is not yet supported as a fixed API/ABI or as part of the platform"
  36. #endif
  37.  
  38. typedef struct SnDisplay SnDisplay;
  39.  
  40. typedef void (* SnDisplayErrorTrapPush) (SnDisplay *display,
  41.                                          Display   *xdisplay);
  42. typedef void (* SnDisplayErrorTrapPop)  (SnDisplay *display,
  43.                                          Display   *xdisplay);
  44.  
  45. SnDisplay* sn_display_new             (Display                *xdisplay,
  46.                                        SnDisplayErrorTrapPush  push_trap_func,
  47.                                        SnDisplayErrorTrapPop   pop_trap_func);
  48. void       sn_display_ref             (SnDisplay              *display);
  49. void       sn_display_unref           (SnDisplay              *display);
  50. Display*   sn_display_get_x_display   (SnDisplay              *display);
  51. sn_bool_t  sn_display_process_event   (SnDisplay              *display,
  52.                                        XEvent                 *xevent);
  53. void       sn_display_error_trap_push (SnDisplay              *display);
  54. void       sn_display_error_trap_pop  (SnDisplay              *display);
  55.  
  56.  
  57.  
  58. SN_END_DECLS
  59.  
  60. #endif /* __SN_COMMON_H__ */
  61.